package com.hxzy.shop.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hxzy.shop.entity.DrugInnerClassifiedManagement;
import org.springframework.transaction.annotation.Transactional;


public interface DrugInnerClassifiedManagementService extends IService<DrugInnerClassifiedManagement> {

    /**
     * 品类添加
     * @param drugUid 商品id
     * @param stairClassifiedId 一级id
     * @param secondLevelClassifiedId 二级id
     * @return 是否成功
     */
    @Transactional(rollbackFor = Exception.class)
    boolean addClassified(Long drugUid, Long stairClassifiedId, Long secondLevelClassifiedId);

    /**
     * 更新轮播图
     * @param id 药品id
     * @param stairClassifiedId 一级分类id
     * @param secondLevelClassifiedId 二级分类id
     * @return 是否成功
     */
    @Transactional(rollbackFor = Exception.class)
    boolean updateClassified(Long id, Long stairClassifiedId, Long secondLevelClassifiedId);
}